package fx.mine.active.component.music.api;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Var;

public interface MusicApi {
    String PREFIX = "http://122.51.3.230:3000";
    int PAGE_SIZE = 10;

    @Get(url = PREFIX + "/register/anonimous")
    String queryCookies();

    @Get(
            url = PREFIX + "/recommend/resource",
            headers = {
                    "Cookie:${cookies}"
            }
    )
    String queryHot(@Var("cookies") String cookies);

    @Get(url = PREFIX + "/playlist/detail?id=${id}")
    String playListDetail(@Var("id") Long id);

    @Get(url = PREFIX + "/playlist/track/all?id=${id}&limit=" + PAGE_SIZE + "&offset=0")
    String playListTrackAll(@Var("id") Long id, int offset);

    @Get(url = PREFIX + "/song/url?id=${id}")
    String song(@Var("id") Long id);

    @Get(url = PREFIX + "/lyric?id=${id}")
    String lyric(@Var("id") Long id);

}
